package xscjglxt;

import java.util.Objects;

public class Per {
    private String name;
    private String number;
    private int score;

    public Per(String name, String number, int score) {
        this.name = name;
        this.number = number;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Per per = (Per) o;
        return score == per.score &&
                Objects.equals(name, per.name) &&
                Objects.equals(number, per.number);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, number, score);
    }
}
